package com.hzhc.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hzhc.entity.SysExceptionLog;
import com.hzhc.mapper.SysExceptionLogMapper;
import com.hzhc.service.SysExceptionLogService;
import com.hzhc.vo.SysExceptionLogVo;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 异常日志 服务实现类
 * </p>
 *
 * @author shizj
 * @since 2021-11-02
 */
@Service
public class SysExceptionLogServiceImpl extends ServiceImpl<SysExceptionLogMapper, SysExceptionLog> implements SysExceptionLogService {

    @Override
    public List<SysExceptionLog> getExceptionLogList(Page<SysExceptionLog> page, SysExceptionLogVo sysExceptionLogVo) {
        IPage<SysExceptionLog> sysExceptionLogIPage = baseMapper.selectExceptionLogPage(page,sysExceptionLogVo);
        return sysExceptionLogIPage.getRecords();
    }
}
